package com.afkt.project.base.app;

import com.afkt.project.util.LogUtils;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;

public abstract class BaseActivity extends AbilitySlice {
    private static final int PERMISSION_REQUEST_CODE = 1;
    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(baseLayoutId());
        LogUtils.error("BaseActivity","onStart");
    }

    @Override
    protected void onActive() {
        super.onActive();
        initView();
        initListener();
    }

    @Override
    protected void onInactive() {
        super.onInactive();
    }

    protected abstract int baseLayoutId();

    protected abstract void initView();

    protected abstract void initListener();

}
